/*
 * @Description: 锁定用户 - 接口
 * @Author: DHL
 * @Date: 2022-04-02 14:02:17
 * @LastEditors: DHL
 * @LastEditTime: 2023-12-15 11:28:13
 */

import {
  LockedUserPageParams,
  LockedUserPageResultModel,
  LockedUserResultModel
} from './model/LockedUserModel'
import { $get, $post, $put } from '@/utils/http'

/**
 * 查询锁定用户信息
 */
export const apiLockedUserSearch = (searchParams: LockedUserPageParams) =>
  $get<LockedUserPageResultModel>({
    url: '/sys/twbUser/listLockedLoginUser',
    params: searchParams
  })

/**
 * 解除锁定用户信息
 */
export const apiLockedUserUnLock = (loginName: string) =>
  $post<LockedUserResultModel>({
    url: '/sys/twbUser/unLockLoginUser',
    params: { loginName: loginName }
  })
